package main

import (
	"fmt"
)

const (
	LENGTH = 4
)

func main() {
	var one, two, three int
	number := []int{1, 2, 3, 4}
	for i := 0; i < LENGTH; i++ {
		one = number[i]
		for j := 0; j < LENGTH; j++ {
			if one != number[j] {
				two = number[j]
				for k := 0; k < LENGTH; k++ {
					if one != number[k] && two != number[k] {
						three = number[k]
						fmt.Printf("%d%d%d", one, two, three)
						fmt.Printf("\n")
					}
				}
			}
		}
	}
}
